﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ICeFramework.Business.DataLayer
{
    public class EntityRowValidationArgs
    {
        private IEntityRow _row;
        public IEntityRow Row
        {
            get { return _row; }
        }

        public bool IsValid
        {
            get { return _errors.Count == 0; }
        }

        private EntityRowErrorCollection _errors = new EntityRowErrorCollection();
        public EntityRowErrorCollection Errors
        {
            get { return _errors; }
        }

        public EntityRowValidationArgs(IEntityRow row)
        {
            _row = row;
        }
    }
}
